function gets(pageNum) {
    var poNumber = $("#poNumber").val();
    var poName = $("#poName").val();
    var poState = $("#poState").val();
    var lefTime = $("#lefTime").val();
    var rightTime = $("#rightTime").val();
    var hName = $("#hName").val();
    var pageN = pageNum;
    $.ajax({
            url: '/myspringboot/PurchaseOrderController/findAll',
            type: 'post',
            dataType: "json",
            data: {
                poNumber: poNumber,
                poName: poName,
                poState: poState,
                lefTime: lefTime,
                rightTime: rightTime,
                hName: hName,
                pageNum: pageN
            },
            success: function (result) {
                var result = result.data;
                yibu(result.pages, result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++) {
                    var poId = list[i].poId;
                    var a = i + 1;//序号
                    var poAuditResult = list[i].poAuditResult;//审核结果
                    var poAuditOpinion = list[i].poAuditOpinion//审核意见
                    if(poAuditOpinion == null){
                        poAuditOpinion = "";
                    }
                    var hName = list[i].hospital.hName;//医院名称
                    var poNumber = list[i].poNumber;//采购单编号
                    var poName = list[i].poName;//采购单名称
                    var poStateTime = list[i].poStateTime;//开始时间
                    var poEndTime = list[i].poEndTime;//结束时间
                    var poCreateTime = list[i].poCreateTime;//建单时间
                    var poSubmissionTime = list[i].poSubmissionTime;//提交时间
                    var poAuditTime = list[i].poAuditTime;//审核时间
                    var poState = list[i].poState;//采购单状态
                    if(poState == 0){
                        poState = "审核中"
                    }else if(poState == 1){
                        poState = "审核通过"
                    }else{
                        poState = "审核未通过"
                    }
                    var tr = '<tr>' +
                        '<td>' + a + '</td>' +
                        '<td><input class="selectItem1" name="choose" value="'+poId+'" type="checkbox">' +
                        '<td>' +
                            '<select name="shenhe" id="shenhe">' +
                                '<option value="">请选择</option>' +
                                '<option value="'+0+'">审核通过</option>' +
                                '<option value="'+1+'">审核未通过</option>' +
                            '</select>' +
                        '</td>' +
                        '<td><input name="yijian" id="yijian" type="text"value="'+poAuditOpinion+'"></td>' +
                        '<td>' + hName + '</td>' +
                        '<td>' + poNumber + '</td>' +
                        '<td>' + poName + '</td>' +
                        '<td>' + poStateTime + '</td>' +
                        '<td>' + poEndTime + '</td>' +
                        '<td>' + poCreateTime + '</td>' +
                        '<td>' + poSubmissionTime + '</td>' +
                        '<td>' + poAuditTime + '</td>' +
                        '<td id="ccc">' + poState + '</td>' +
                        '<td><a>查看</a></td>' +
                        '</tr>'
                    $(".a").append(tr);
                }
            }
        }
    )
}



